<!doctype html>
<html>

	<head>
		<meta charset="{CHARSET}">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="{MUI_CSS_LOC}" rel="stylesheet" />
	</head>

	<body>
		<script src="{MUI_JS_LOC}"></script>
		<script type="text/javascript">
			mui.init()
		</script>

		<div style="width: 300px;">
			<div class="mui-input-row">
			<label>手机号</label>
			<input class="mui-input-text" id="phoneNumber" />
			</div>
			<div class="mui-input-row" style="width: 300px;">
				<textarea rows="20" id="message_tosend"></textarea>
			</div>
			<div align="center">
				<button type="button" class="mui-btn mui-btn-primary mui-btn-blue" data-loading-text="请稍等" onclick="sendMessage()">确定</button>
			</div>

		</div>

		<script>
			//			var $_GET = (function() {
			//				var url = window.document.location.href.toString();
			//				var u = url.split("?");
			//				if(typeof(u[1]) == "string") {
			//					u = u[1].split("&");
			//					var get = {};
			//					for(var i in u) {
			//						var j = u[i].split("=");
			//						get[j[0]] = j[1];
			//					}
			//					return get;
			//				} else {
			//					return {};
			//				}
			//			})();
			//			//页面数据初始化
			//			var name = $_GET['name'];
			//			var player=$_GET['player'];
			//			var time=$_GET['time']
			var name = localStorage.getItem("mvname")
			var player = localStorage.getItem("mvplayer")
			var time = localStorage.getItem("mvtime")

			var inputarea = document.getElementById("message_tosend")
			inputarea.innerHTML = "电影名：" + name + "\n演员:" + player + "\n放映时间:" + time

			function sendMessage() {
				var phoneNumber = document.getElementById('phoneNumber').value
				var message = document.getElementById('message_tosend').value

				var msg = plus.messaging.createMessage(plus.messaging.TYPE_SMS)
				msg.to = [String(phoneNumber)]
				msg.body = message
				plus.messaging.sendMessage(msg)

			}
			//			mui('#settingID').on('tap', 'li', function() {
			//			var link = this.getAttribute("link")
			//				mui.openWindow(link)
			//
			//			})
		</script>
	</body>

</html>